import request from '@/utils/request'
import { ResultVoid, DeepRequired } from '../../interface'

/**
 * 密码修改验证码
 * /email/captcha/pwd/{email}
 */
export function getEmailCaptchaPwdByEmail(
  params: GetEmailCaptchaPwdByEmailParams,
) {
  return request.get<DeepRequired<ResultVoid>>(
    `/email/captcha/pwd/${params.email}`,
  )
}

interface GetEmailCaptchaPwdByEmailParams {
  email: string
}
